package admin

import (
	"net/http"

	"suci-go-zero/common/result"

	logic "suci-go-zero/internal/logic/admin"
	"suci-go-zero/internal/svc"
)

func MyMenuHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := logic.NewMyMenuLogic(r.Context(), svcCtx)
		resp, err := l.MyMenu()
		result.HttpResult(r, w, resp, err)
	}
}
